export default () => {
  const download = (filename: any, href: string) => {
    const link = document.createElement('a');
    link.download = filename;
    link.href = href;
    link.click();
  };
  return { download };
};
